from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class User(AbstractUser):
    name = models.CharField(verbose_name='姓名', max_length=10)
    username = models.CharField(verbose_name='工号', max_length=20, unique=True)
    class Meta:
        verbose_name='用户表'
        verbose_name_plural=verbose_name
        db_table = 'user'
    def __str__(self):
        return self.name